// pages/myjxs/jxs.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    status:1, // 1 2 3 行业 企业 个人
    curLists:[],
    hyLists:[
      {
        name:'交罚款乐山大佛卡拉大家交罚款乐山大佛卡拉大家',
        money:1351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      }
    ],
    qyLists:[
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      }
    ],
    grLists:[
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      }, {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      },
      {
        name:'交罚款乐山大佛卡拉大家',
        money:1351351,
        num:55
      }
    ]
  },
  showStatus:function (e) {
    let status = e.currentTarget.dataset.status;
    let lists = this.data.curLists;
    if(status == 1) lists= this.data.hyLists;
    if(status == 2) lists= this.data.qyLists;
    if(status == 3) lists= this.data.grLists;
    if (status == this.data.status) return;
    this.setData({
      status: status,
      curLists: lists
    })
  },
  addTodoShow(){
    if(this.data.status == 1){
      wx.navigateTo({
        url: '../hyapply/hyapply',
      })
    }else if(this.data.status == 2){
      wx.navigateTo({
        url: '../qyapply/qyapply',
      })
    }else{
      wx.navigateTo({
        url: '../grapply/grapply',
      })
    }
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let hyLists = this.data.hyLists
    this.setData({
      curLists:hyLists
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})